package com.easy.dev.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.easy.dev.annotation.Bind;
import lombok.Data;

@Data
public class Service {

    @TableId(type= IdType.AUTO)
    private Long id;

    @TableField("test_id")
    @Bind(clazz = Test.class, joinColumn = "id", realColumn = "name", realAsColumn = "testName", join = " left join ")
    private Long testId;

    @TableField("name")
    private String name;

    @TableField("age")
    private Integer age;

    @TableField("email")
    private String email;

}